import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersist from "pinia-plugin-persist";

import App from "./App.vue";
import router from "./router";

// * svg icons
import "virtual:svg-icons-register";

import ArcoVue from "@arco-design/web-vue";
import ArcoVueIcon from "@arco-design/web-vue/es/icon";
import "@arco-design/web-vue/dist/arco.css";

import "@/assets/style/global.less";

// * UnoCSS
import "uno.css";

// 注册全局组件
import ProButton from "./components/ProButton";

const app = createApp(App);
app.component("ProButton", ProButton);

const store = createPinia();
store.use(piniaPluginPersist);

app.use(store);
app.use(router);

app.use(ArcoVue, {});
app.use(ArcoVueIcon);
app.mount("#app");
